const getters = {
  // 取app模块属性
  sidebar: (state) => state.app.sidebar,
  device: (state) => state.app.device,
  // 取出user属性
  token: (state) => state.user.token,
  avatar: (state) => state.user.avatar,
  name: (state) => state.user.name,
  userId: (state) => state.user.userInfo.userId,
  avatar: (state) => state.user.userInfo.staffPhoto, // 头像
  name: (state) => state.user.userInfo.username, // 用户名称
  routes: (state) => state.user.routes,
  company: (state) => state.user.userInfo.company, // 公司名称
  departmentName: (state) => state.user.userInfo.departmentName, // 部门名称
};
export default getters;
